import { combineReducers } from 'redux-immutable';

import { reducer as routerReducer } from '../layouts/BasicLayout/store';
//数据采集
import { reducer as taskReducer } from '../pages/dataCollection/task/store';
import { reducer as createTaskReducer } from '../pages/dataCollection/task/components/createTask/store';
//数据源
import { reducer as connectionReducer } from '../pages/dataSource/table/connectionList/store';
import { reducer as tableReducer } from '../pages/dataSource/table/TableList/store';
import { reducer as fileReducer } from '../pages/dataSource/file/store';
import { reducer as apiReducer } from '../pages/dataSource/webApi/store';
//资源目录
import { reducer as metaDataReducer } from '../pages/resourceList/metadata/store';
import { reducer as cateMgrReducer } from '../pages/resourceList/categoryManage/store'
//交换管理
import { reducer as exchangeReducer } from '../pages/exchangeManage/store';
//基础配置
import { reducer as organizationReducer } from '../pages/configuration/organization/store';
import { reducer as nodeReducer } from '../pages/configuration/node/store';
import { reducer as typeReducer } from '../pages/configuration/type/store';

const reducer = combineReducers({
  MainRoute: routerReducer,

  task: taskReducer,
  createTask: createTaskReducer,

  connection: connectionReducer,
  table: tableReducer,
  file: fileReducer,
  api: apiReducer,

  catemanage: cateMgrReducer,

  exchange: exchangeReducer,
  MetaData:metaDataReducer,

  organization:organizationReducer,
  node: nodeReducer,
  type: typeReducer,
})

export default reducer;